package com.flying.learning.si.sg.service;

import lombok.extern.slf4j.Slf4j;

import org.springframework.integration.annotation.ServiceActivator;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class HelloService {
//    @ServiceActivator(inputChannel = "say.hello.channel")
//    public void sayHello(String name) {
//        log.info("Hello " + name + "!!");
//    }

    @ServiceActivator(inputChannel = "get.hello.channel", outputChannel = "say.hello.channel")
    public String getHelloMessage(String name) {
        return "Hello " + name + "!!";
    }
}
